home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 March / CMCD0304.ISO / Software / Freeware / Programare / nullsoft / nsis20.exe / Examples / Modern UI / WelcomeFinish.nsi < prev   
Text File  |  2004-02-06  |  2KB  |  89 lines

  1. ;NSIS Modern User Interface version 1.70
  2. ;Welcome/Finish Page Example Script
  3. ;Written by Joost Verburg
  4.  
  5. ;--------------------------------
  6. ;Include Modern UI
  7.  
  8.   !include "MUI.nsh"
  9.  
  10. ;--------------------------------
  11. ;General
  12.  
  13.   ;Name and file
  14.   Name "Modern UI Test 1.70"
  15.   OutFile "WelcomeFinish.exe"
  16.  
  17.   ;Default installation folder
  18.   InstallDir "$PROGRAMFILES\Modern UI Test"
  19.   
  20.   ;Get installation folder from registry if available
  21.   InstallDirRegKey HKCU "Software\Modern UI Test" ""
  22.  
  23. ;--------------------------------
  24. ;Interface Settings
  25.  
  26.   !define MUI_ABORTWARNING
  27.  
  28. ;--------------------------------
  29. ;Pages
  30.  
  31.   !insertmacro MUI_PAGE_WELCOME
  32.   !insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Contrib\Modern UI\License.txt"
  33.   !insertmacro MUI_PAGE_COMPONENTS
  34.   !insertmacro MUI_PAGE_DIRECTORY
  35.   !insertmacro MUI_PAGE_INSTFILES
  36.   !insertmacro MUI_PAGE_FINISH
  37.   
  38.   !insertmacro MUI_UNPAGE_WELCOME
  39.   !insertmacro MUI_UNPAGE_CONFIRM
  40.   !insertmacro MUI_UNPAGE_INSTFILES
  41.   !insertmacro MUI_UNPAGE_FINISH
  42.   
  43. ;--------------------------------
  44. ;Languages
  45.  
  46.   !insertmacro MUI_LANGUAGE "English"
  47.  
  48. ;--------------------------------
  49. ;Installer Sections
  50.  
  51. Section "Dummy Section" SecDummy
  52.  
  53.   SetOutPath "$INSTDIR"
  54.   
  55.   ;ADD YOUR OWN FILES HERE...
  56.   
  57.   ;Store installation folder
  58.   WriteRegStr HKCU "Software\Modern UI Test" "" $INSTDIR
  59.   
  60.   ;Create uninstaller
  61.   WriteUninstaller "$INSTDIR\Uninstall.exe"
  62.  
  63. SectionEnd
  64.  
  65. ;--------------------------------
  66. ;Descriptions
  67.  
  68.   ;Language strings
  69.   LangString DESC_SecDummy ${LANG_ENGLISH} "A test section."
  70.  
  71.   ;Assign language strings to sections
  72.   !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
  73.     !insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
  74.   !insertmacro MUI_FUNCTION_DESCRIPTION_END
  75.  
  76. ;--------------------------------
  77. ;Uninstaller Section
  78.  
  79. Section "Uninstall"
  80.  
  81.   ;ADD YOUR OWN FILES HERE...
  82.  
  83.   Delete "$INSTDIR\Uninstall.exe"
  84.  
  85.   RMDir "$INSTDIR"
  86.  
  87.   DeleteRegKey /ifempty HKCU "Software\Modern UI Test"
  88.  
  89. SectionEnd